<?php
// +----------------------------------------------------------------------
// | QQ服务设置
// +----------------------------------------------------------------------

return [
    // QQ服务ip
    'server_ip'   => env('qq.server_ip', 'http://127.0.0.1'),
    // QQ服务端口
    'server_port' => env('qq.server_port', '5700'),
    // QQ服务支持api列表
    'qqlist' => [
        'send_private_msg' => [
            'name'    => '发送私聊消息',
            'user_id' => 'QQNumber',
            'message' => 'String',
        ],
        'send_group_msg' => [
            'name'     => '发送群消息',
            'group_id' => 'QQNumber',
            'message'  => 'String',
        ],
        'delete_msg' => [
            'name'       => '撤回消息',
            'message_id' => 'Number',
        ],
        'set_group_special_title' => [
            'name'          => '设置群组专属头衔',
            'group_id'      => 'QQNumber',
            'user_id'       => 'QQNumber',
            'special_title' => 'String',
        ],
    ],
    // QQ服务api返回值列表
    'returnlist' => [
        'send_private_msg' => [
            'id'    => ['data', 'message_id'],
        ],
        'send_group_msg' => [
            'id'    => ['data', 'message_id'],
        ],
        'delete_msg' => [],
        'set_group_special_title' => [],
    ],
    // QQ服务变量名
    'varlist' => [
        'user_id' => [
            'name' => '目标QQ号',
            'type' => 'short',
        ],
        'group_id' => [
            'name' => '目标群号',
            'type' => 'short',
        ],
        'message' => [
            'name' => '消息',
            'type' => 'long',
        ],
        'message_id' => [
            'name' => '消息id',
            'type' => 'short',
        ],
        'special_title' => [
            'name' => '群成员头衔',
            'type' => 'short',
            'default' => '',
        ],
    ],
];